package com.czx.drivingtest.model;

import lombok.Getter;
import lombok.Setter;

/**
 * @author czx
 * @version 2020/3/12 8:55 下午
 * @since JDK12
 */
@Getter
@Setter
public class ResponseData<T> {
    private int code;

    private String msg;

    private T data;

    public ResponseData() {}

    public ResponseData(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResponseData(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
